#include "stdafx.h"
#include <lvl_update.h>
#include "PagedGeometry.h"
#include "BatchPage.h"
#include "GrassLoader.h"



LvlMenuUpdate::LvlMenuUpdate(Ogre::SceneNode* cRot,Forests::PagedGeometry *gr) 
{
cRotator=cRot;
grass=gr;
};  
void LvlMenuUpdate::updateLvl(Ogre::Real evt)
{
cRotator->yaw(Ogre::Degree(evt*-3));
grass->update();
}

Lvl2Update::Lvl2Update(Ogre::SceneManager * sceneMgr,Forests::PagedGeometry *gr,Forests::PagedGeometry *tr,Ogre::AnimationState* mAnimStat)
{
grass=gr;
tree=tr;
mAnimState=mAnimStat;
}
void Lvl2Update::updateLvl(Ogre::Real evt)
{
grass->update();
tree->update();
//mAnimState->addTime(evt);
}
